<?php
    if(is_array($result))
	{
		header('Content-Type: application/json; Charset=UTF-8',true);
		$jsonData = array('page'=>$o_ImTransferFN->page,'total'=>$o_ImTransferFN->numeroRegistros,'rows'=>array());
		foreach ($result as $key => $obj)
		{
			$entry = array('id'=>$obj->getTransferId(),
			    'cell'=>array(
			    
			            's_TransferId' =>$obj->getTransferId(),
			            's_DocTransfer'=>$obj->getDocTransfer(),
			            's_DocRef'=>$obj->getDocRef(),
			            's_TipoTransfer'=>$obj->getTipoTransfer(),
			            's_Estado' =>$obj->getEstado(),
			            's_AlmOrigenId'=>$obj->getAlmOrigenId(),
			            's_AlmDestinoId'=>$obj->getAlmDestinoId(),
			            's_CreaFecha'=>$obj->getCreaFecha(),			            
			            'opciones'=>"<img border='0' title='Editar Item' src='/gourmet-express/trunk/imgs/icons/page_edit.png' onclick=fn_editar('". $obj->getTransferId()."') style='cursor:pointer;'>"
			    ),
			);
			$jsonData['rows'][] = $entry;
		}
		echo json_encode($jsonData);
	}?>